package Demo_A;

class MyRunnable implements Runnable {
    public void run() {
        System.out.println("hello Thread");
    }
}
public class Demo_A {
    public static void main(String[] args) {

        Runnable runnable = new MyRunnable();

        Thread t = new Thread(runnable);

        //启动线程
        t.start();

        //主线程逻辑
        //......

    }
}
